<template>
  <div>
    <h1>我是一个 {{ professional }}</h1>
  </div>
</template>
<script>
export default {
  inheritAttrs: false,
  props: {
    professional: {
      type: String,
      default: '码农'
    }
  },
  data () {
    return {

    }
  },
  created () {
    console.log(this.$attrs, this.$listeners)

    // 调用父组件中的 triggerTwo 方法
    this.$listeners.two()
  }
}
</script>
